package com.jumi.microservice.common.enumeration;

import com.jumi.microservice.common.exception.BusinessExceptionAssert;

/**
 * Argument exception response enum
 *
 * @author Administrator
 */
public enum ArgumentResponseEnum implements BusinessExceptionAssert {

    /**
     * Valid Error.
     */
    VALID_ERROR(500, "argument valid error");

    /**
     * 返回码
     */
    private Integer code;
    /**
     * 返回消息
     */
    private String message;

    ArgumentResponseEnum() {
    }

    ArgumentResponseEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
